Skip to content

feat(sdk)!: align Python API contracts for 0.17.0 - #48

Open
xiejiabo wants to merge 1 commit into
QoderAI:mainfrom
xiejiabo:codex/release-0.17.0
Open

xiejiabo wants to merge 1 commit into
QoderAI:mainfrom
xiejiabo:codex/release-0.17.0

Conversation

@xiejiabo

@xiejiabo xiejiabo commented Dec 3, 2026

Copy link
Copy Markdown

Summary

  • Add optional busy_mode to synchronous and asynchronous Managed event sends, Forward Template schedule scope and typed clearing, and Managed Session Agent patch names and descriptions.
  • Align Managed user-message request typing with the text/image contract. Historical responses and tool-result document inputs are unchanged; migration notes explain the distinction.
  • Document and exercise direct Managed SA Key use without changing the default shared SAT flow. Update the generated API reference, package metadata, lockfile, and changelog for 0.17.0.

Why

The published API supports options the Python SDK could not previously express through its typed surface. It also documents a narrower Managed user-message input than the SDK advertised. The breaking typing correction warrants a minor version bump while the SDK is pre-1.0.

Verification

  • uv run make lint
  • uv run make typecheck
  • uv run make test
  • uv run make docs-check
  • Changed example --help smoke check
  • Account-backed integration tests not required for this offline regression run (not run)

The checks below used Python 3.12 and locked dependencies directly because Windows policy prevented uv from creating its environment. The standard make commands are not marked as run.

python -m ruff check src tests examples scripts — passed
python -m ruff format --check src tests examples scripts — 786 files formatted
python -m mypy src/qca scripts — passed (687 source files)
python -m pytest -q --tb=short — 4,608 passed, 73 deselected, 6 warnings
python -m examples.auth.sa_key --help — passed
python .github/scripts/release_notes.py check — passed
python -m unittest discover -s .github/scripts -p 'test_*.py' — 25 tests ran; 8 assertions failed due to Windows symlink privileges (WinError 1314)
git diff --check — passed

The regenerated API reference matched the checked-in content after normalizing Windows path separators in source links. Internal links and compilation of all 23 README Python snippets passed. The standard docs and release automation checks are left to Linux CI.

Impact

  • Public API or behavior changed
  • Changelog updated (entries are in the 0.17.0 section for this version-preparation PR)
  • Synchronous and asynchronous clients remain aligned
  • Generated API documentation updated
  • Contract fixtures updated (existing fixture data is unchanged; sync/async mock-transport and request-type regression cases were added)
  • Go and TypeScript parity verified (this change updates Python only; no cross-SDK verification was run)
  • Migration notes added for the breaking typing correction
  • No credentials, .env.live, logs, or generated test output committed

@xiejiabo
xiejiabo requested a review from moonyue-w as a code owner December 3, 2026 09:24

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant